package cn.doitedu.web;

import cn.doitedu.engine.CalculatorRunnable;
import cn.doitedu.engine.DataReceiverRunnable;
import cn.doitedu.engine.StaticContext;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;

@SpringBootApplication
public class SpringDemoApplication {

    public static void main(String[] args) throws IOException, InterruptedException, ClassNotFoundException {
        SpringApplication.run(SpringDemoApplication.class, args);

        new Thread(new DataReceiverRunnable()).start();

        new Thread(new CalculatorRunnable()).start();

    }

}
